package demo.practice.leetcode_base;

public class P237 {

    public void deleteNode(ListNode node) {
        if(node.next!=null){
            node.val= node.next.val;
            node.next=node.next.next;
        }


    }
}
